package game.module.account;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

@Component
public class AccountDao {

	public static final Logger logger = LoggerFactory.getLogger(AccountDao.class);

	@Autowired
	private JdbcTemplate jdbcTemplate;

	public void testDb() {
		int characterCount = jdbcTemplate.queryForInt("select count(*) from t_character");
		logger.info("role count={}", characterCount);
	}

}
